package com.yunc.modules.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 订单商品
 *
 * @author tao cong cong
 * @create 2018/12/23 7:33 PM
 */
@TableName("shop_order_item")
@Data
public class ShopOrderItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private String id;

    private String orderId;

    private String itemId;

    /**
     * 属性库存表id
     */
    private String specsId;

    /**
     * 数量
     */
    private Integer num;

    /**
     * 商品参数
     */
    private String paramData;

    /**
     * 商品标题
     */
    private String title;

    /**
     * 图片
     */
    private String image;

    /**
     * 现价
     */
    private Double prePrice;

    /**
     * 原价
     */
    private Double origPrice;

    /**
     * 总价
     */
    private Double totalPrice;

    /**
     * 创建时间
     */
    private Date createTime;
}
